<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>后盾人</title>
  </head>
  <body>
    <script>
      // const boolean = new Boolean(false);
      // console.log(typeof boolean);
      // console.log(boolean.valueOf());
      // if (boolean.valueOf()) {
      //   console.log("houdunren.com");
      // }
      // let hd = false;
      // console.log(typeof hd);
      // if (hd) {
      //   console.log("hdcms");
      // }
      // let number = 89;
      // if (number) console.log("number");
      //false 0   0    true 1   1==90
      // console.log(number == true);
      // console.log(Boolean(number));

      // let hd = "11";
      // false 0 hd   1 === 1
      // console.log(hd == true);
      // console.log(Boolean(hd));
      // if (hd) console.log("houdunren.com");

      let array = [];
      // console.log(Number(array));
      // console.log(array == false);  []  {}
      console.log(Boolean([]));
      // if ([]) console.log("houdunren.com");

      // console.log(Boolean({}));
      if ({}) console.log("hdcms");
      //
    </script>
  </body>
</html>
